#! /bin/bash

versions='basic v3 v3_3'
nts='2'
nactors='15 16 17'
simtimes='5 10 20'
is_thread=0
testver='event4'
progress_only=0
action='timed:1'

logbase=$SYSCPAR_ROOT/scripts/exp
cd $SYSCPAR_ROOT/tests/$testver
make clean $versions

echo Working..
for v in `echo $versions`; do
        log=$logbase/exp5_$v.out
        for t in `echo $simtimes`; do
                echo '[simtime='$t']' >> $log
                for n in `echo $nactors`; do
                        echo -e '\t[log_nactors='$n']' >> $log
                        for nt in `echo $nts`; do
                                echo -n -e '\t\t[nt='$nt'] ' >> $log
                                env NT=$nt REPORT= ./$v 1 $t $n $n 1 $is_thread $progress_only $action >> $log
                        done 
                        echo -e '\n' >> $log
                done 
                echo -e '\n' >> $log
        done 
done
echo Done!
